Skip to content

Automation/bot auto pr#197

Open
VirilePeak wants to merge 38 commits intoPolymarket:mainfrom
VirilePeak:automation/bot-auto-pr
Open

Automation/bot auto pr#197
VirilePeak wants to merge 38 commits intoPolymarket:mainfrom
VirilePeak:automation/bot-auto-pr

Conversation

@VirilePeak
Copy link

@VirilePeak VirilePeak commented Feb 9, 2026

Note

High Risk
Introduces substantial new trading/execution logic and an SSH-based deploy workflow; mistakes could place unintended orders or deploy incorrect code if enabled/secrets are misconfigured.

Overview
Adds GitHub automation for semi-automatic maintenance PRs and optional deployments. A new bot-auto-pr workflow runs basic Python lint/tests, optionally autoformats with black, and opens a draft PR via peter-evans/create-pull-request; documentation under .github/automation explains the intended branch protection/review/token setup.

Introduces an optional deploy-on-merge workflow that, on pushes to main, conditionally SCP-deploys the repo to a remote host using SSH secrets, plus a local scripts/test_deploy_ssh.sh helper and docs for setting deploy secrets.

Adds new trading runtime components. New agents/application/fast_entry_engine.py implements low-latency dislocation detection with immediate “leg1” entry execution, latency logging/stats, optional websocket updates, and hooks into a new PositionManager. New agents/application/position_manager.py adds trade IDs, per-market locks, confirmation/idempotency handling, timeouts, minimal state persistence, and PnL tracking; src/config/settings.py is added to centralize env-driven configuration.

Minor repo hygiene: .gitignore now excludes generated local_markets_db JSON, and Windows startup scripts (start_server.ps1, start_server_autostart.bat) plus local trade log analysis scripts are added.

Written by Cursor Bugbot for commit a7a0b03. This will update automatically on new commits. Configure here.

VirilePeak and others added 9 commits February 8, 2026 17:10
Co-authored-by: Cursor <cursoragent@cursor.com>
…-automatic)

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
…secrets)

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Welcome to Polymarket Agents. Thank you for creating your first PR. Cheers!

Co-authored-by: Cursor <cursoragent@cursor.com>
@VirilePeak VirilePeak marked this pull request as ready for review February 9, 2026 19:01
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 13 potential issues.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

VirilePeak and others added 2 commits February 9, 2026 22:40
… file to prevent duplicate webhook processing after restart

Co-authored-by: Cursor <cursoragent@cursor.com>
…enen Wert zu überschreiben — verhindert Verlust benutzerdefinierter PYTHONPATH-Einträge beim Start.

Co-authored-by: Cursor <cursoragent@cursor.com>
Copy link
Author

@VirilePeak VirilePeak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

VirilePeak and others added 8 commits February 9, 2026 22:47
…rice drop detection logic, and refactor market token fetching to use httpx directly
…on branch

Co-authored-by: Cursor <cursoragent@cursor.com>
YAML value for 'commit-message' contained a colon causing a nested mapping parse error; changed to block scalar.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
…n PR)

Co-authored-by: Cursor <cursoragent@cursor.com>
@VirilePeak
Copy link
Author

Hi maintainers — PR #197 is from a fork and the GitHub Actions workflow is awaiting approval.
Could someone please click “Approve workflows to run” so the checks can execute? Thank you!

Copy link
Author

@VirilePeak VirilePeak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@VirilePeak
Copy link
Author

Hi maintainers — this PR triggers 3 GitHub Actions workflows that are awaiting approval.
Could someone with write access please click “Approve workflows to run” so the checks can execute? Thanks!

@VirilePeak
Copy link
Author

Hi maintainers — this PR adds the automation workflows for bot maintenance/updates.
Security note: the deploy workflow is optional and only runs on merge / required conditions (no secrets are exposed in PR context).
GitHub shows “3 workflows awaiting approval” — could someone with write access please click “Approve workflows to run” so CI can execute?
Happy to split deploy vs. bot-auto PR if you prefer.

VirilePeak and others added 2 commits February 10, 2026 16:52
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
VirilePeak and others added 16 commits February 10, 2026 20:00
… test

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
…irmation store, exit safety; tests and scripts

Co-authored-by: Cursor <cursoragent@cursor.com>
…n confirmation key

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
…ptance; remove duplicate confirmation block

Co-authored-by: Cursor <cursoragent@cursor.com>
…irmed)

Co-authored-by: Cursor <cursoragent@cursor.com>
…market/token:direction:signal_id) after dedupe

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
…blocked (session/MQ)

Co-authored-by: Cursor <cursoragent@cursor.com>
…er trade create

Co-authored-by: Cursor <cursoragent@cursor.com>
… clear

Co-authored-by: Cursor <cursoragent@cursor.com>
…ar logging, dedupe log fixes, time_to_end instrumentation

Co-authored-by: Cursor <cursoragent@cursor.com>
…dedupe logs, slot-drift, orphan expiry

Co-authored-by: Cursor <cursoragent@cursor.com>
…ditions

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant